package com.example.cash.craft.pojo.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Schema(description = "修改商品参数Class")
public class ProductUpdateParam implements Serializable {

    @Schema(description = "商品类别ID", example = "1", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long categoryId;

    @Schema(description = "封面图片", example = "http://example.com/cover.png", requiredMode = Schema.RequiredMode.REQUIRED)
    private String coverImage;

    @Schema(description = "标题", example = "英特尔 Core i9-13900K 高性能桌面处理器", requiredMode = Schema.RequiredMode.REQUIRED)
    private String title;

    @Schema(description = "价格", example = "9999.99", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal price;

    @Schema(description = "库存数量", example = "100", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer stock;

    @Schema(description = "商品描述", example = "Intel Core i9-13900K 是 Intel 最新的桌面处理器，具有高性能、高通量、高延迟和低功耗的架构。", requiredMode = Schema.RequiredMode.REQUIRED)
    private String description;

}